package com.fzshang.commen.serviceImpl;

import cn.hutool.core.date.DateUtil;
import com.fzshang.commen.bean.PlanceAnOrder;
import com.fzshang.commen.mapper.PlanceAnOrderMapper;
import com.fzshang.commen.service.PlanceAnOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 订单表 服务实现类
 * </p>
 *
 * @author 冯政尚
 * @since 2020-02-24
 */
@Service
public class PlanceAnOrderServiceImpl extends ServiceImpl<PlanceAnOrderMapper, PlanceAnOrder> implements PlanceAnOrderService {

    /**
     * @param userId
     * @return 查询动态
     */
    @Override
    public List<PlanceAnOrder> selectByUserId(Long userId) {
        String time = DateUtil.today();
        return baseMapper.selectByUserId(userId,time);
    }


}
